.class public Les/yo;
.super Les/zo;
.source "ShuffleOnPicker.java"


# instance fields
.field private d:I

.field private e:I

.field private f:Ljava/util/LinkedList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/LinkedList<",
            "Ljava/lang/Integer;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>()V
    .locals 1

    .line 1
    invoke-direct {p0}, Les/zo;-><init>()V

    .line 2
    new-instance v0, Ljava/util/LinkedList;

    invoke-direct {v0}, Ljava/util/LinkedList;-><init>()V

    iput-object v0, p0, Les/yo;->f:Ljava/util/LinkedList;

    return-void
.end method


# virtual methods
.method protected a()V
    .locals 4

    .line 1
    iget v0, p0, Les/zo;->b:I

    const/4 v1, -0x1

    if-eq v0, v1, :cond_2

    const/4 v0, 0x0

    .line 2
    :goto_0
    iget-object v2, p0, Les/yo;->f:Ljava/util/LinkedList;

    invoke-virtual {v2}, Ljava/util/LinkedList;->size()I

    move-result v2

    if-ge v0, v2, :cond_1

    .line 3
    iget-object v2, p0, Les/yo;->f:Ljava/util/LinkedList;

    invoke-virtual {v2, v0}, Ljava/util/LinkedList;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/Integer;

    invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I

    move-result v2

    iget v3, p0, Les/zo;->b:I

    if-ne v2, v3, :cond_0

    .line 4
    iput v0, p0, Les/yo;->d:I

    goto :goto_1

    :cond_0
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 5
    :cond_1
    :goto_1
    iget v0, p0, Les/yo;->e:I

    if-ne v0, v1, :cond_2

    .line 6
    iget v0, p0, Les/zo;->b:I

    iput v0, p0, Les/yo;->e:I

    :cond_2
    return-void
.end method

.method public b()I
    .locals 2

    .line 9
    iget v0, p0, Les/yo;->e:I

    const/4 v1, -0x1

    if-eq v0, v1, :cond_0

    return v0

    :cond_0
    const/4 v0, 0x0

    return v0
.end method

.method protected b(I)I
    .locals 5

    .line 1
    iget v0, p0, Les/zo;->a:I

    const/4 v1, -0x1

    if-nez v0, :cond_0

    return v1

    :cond_0
    const/4 v2, 0x1

    if-ne p1, v1, :cond_1

    add-int/lit8 p1, v0, -0x1

    .line 2
    :cond_1
    iget-object v0, p0, Les/yo;->f:Ljava/util/LinkedList;

    invoke-virtual {v0}, Ljava/util/LinkedList;->size()I

    move-result v0

    if-lez v0, :cond_3

    .line 3
    iget v0, p0, Les/yo;->d:I

    add-int/2addr v0, v2

    iget-object v3, p0, Les/yo;->f:Ljava/util/LinkedList;

    invoke-virtual {v3}, Ljava/util/LinkedList;->size()I

    move-result v3

    rem-int/2addr v0, v3

    .line 4
    iget-object v3, p0, Les/yo;->f:Ljava/util/LinkedList;

    invoke-virtual {v3, v0}, Ljava/util/LinkedList;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/Integer;

    invoke-virtual {v3}, Ljava/lang/Integer;->intValue()I

    move-result v3

    iget v4, p0, Les/yo;->e:I

    if-ne v3, v4, :cond_2

    iget v3, p0, Les/zo;->c:I

    if-ne v3, v2, :cond_3

    .line 5
    :cond_2
    iget-object p1, p0, Les/yo;->f:Ljava/util/LinkedList;

    invoke-virtual {p1, v0}, Ljava/util/LinkedList;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Ljava/lang/Integer;

    invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I

    move-result p1

    return p1

    .line 6
    :cond_3
    invoke-virtual {p0}, Les/yo;->e()V

    .line 7
    iget v0, p0, Les/zo;->c:I

    const/4 v2, 0x2

    if-ne v0, v2, :cond_4

    .line 8
    invoke-virtual {p0, p1}, Les/yo;->b(I)I

    move-result p1

    return p1

    :cond_4
    return v1
.end method

.method public c()I
    .locals 3

    .line 1
    iget v0, p0, Les/zo;->a:I

    const/4 v1, -0x1

    if-nez v0, :cond_0

    return v1

    .line 2
    :cond_0
    iget v2, p0, Les/zo;->b:I

    add-int/lit8 v2, v2, 0x1

    rem-int/2addr v2, v0

    .line 3
    invoke-virtual {p0, v2}, Les/yo;->b(I)I

    move-result v0

    if-ne v0, v1, :cond_1

    .line 4
    invoke-virtual {p0}, Les/yo;->e()V

    .line 5
    invoke-virtual {p0}, Les/yo;->a()V

    .line 6
    invoke-virtual {p0, v2}, Les/yo;->b(I)I

    move-result v0

    :cond_1
    return v0
.end method

.method public d()I
    .locals 2

    .line 1
    iget v0, p0, Les/zo;->a:I

    if-nez v0, :cond_0

    const/4 v0, -0x1

    return v0

    .line 2
    :cond_0
    iget v0, p0, Les/yo;->d:I

    if-gtz v0, :cond_1

    const/4 v0, 0x0

    goto :goto_0

    :cond_1
    add-int/lit8 v0, v0, -0x1

    iget-object v1, p0, Les/yo;->f:Ljava/util/LinkedList;

    invoke-virtual {v1}, Ljava/util/LinkedList;->size()I

    move-result v1

    rem-int/2addr v0, v1

    .line 3
    :goto_0
    iget-object v1, p0, Les/yo;->f:Ljava/util/LinkedList;

    invoke-virtual {v1, v0}, Ljava/util/LinkedList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Integer;

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    return v0
.end method

.method public e()V
    .locals 4

    .line 1
    iget-object v0, p0, Les/yo;->f:Ljava/util/LinkedList;

    invoke-virtual {v0}, Ljava/util/LinkedList;->clear()V

    .line 2
    new-instance v0, Ljava/util/LinkedList;

    invoke-direct {v0}, Ljava/util/LinkedList;-><init>()V

    const/4 v1, 0x0

    .line 3
    :goto_0
    iget v2, p0, Les/zo;->a:I

    if-ge v1, v2, :cond_0

    .line 4
    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z

    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 5
    :cond_0
    new-instance v1, Ljava/util/Random;

    invoke-direct {v1}, Ljava/util/Random;-><init>()V

    .line 6
    :goto_1
    invoke-virtual {v0}, Ljava/util/LinkedList;->size()I

    move-result v2

    if-lez v2, :cond_1

    .line 7
    invoke-virtual {v0}, Ljava/util/LinkedList;->size()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/util/Random;->nextInt(I)I

    move-result v2

    .line 8
    invoke-virtual {v0, v2}, Ljava/util/LinkedList;->remove(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/Integer;

    .line 9
    iget-object v3, p0, Les/yo;->f:Ljava/util/LinkedList;

    invoke-virtual {v3, v2}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z

    goto :goto_1

    :cond_1
    const/4 v0, -0x1

    .line 10
    iput v0, p0, Les/yo;->e:I

    return-void
.end method

.method protected f()V
    .locals 0

    .line 1
    invoke-virtual {p0}, Les/yo;->e()V

    return-void
.end method
